package com.lanhe.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lanhe.order.domain.LhOrdersPool;

import java.util.List;

/**
 * (LhOrdersPool)表服务接口
 *
 * @author zhanggl
 * @since 2023-12-11 09:58:44
 */
public interface ILhOrdersPoolService extends IService<LhOrdersPool> {

	/**
	 * 新增主订单数据
	 *
	 * @param ordersPool 实体
	 * @return int 返回值
	 * @author zhanggl
	 * @date 2023/12/11
	 */
	int insertOrdersPool(LhOrdersPool ordersPool);

	/**
	 * 分页查询汇总订单
	 *
	 * @param orders 实体
	 * @return java.util.List<com.lanhe.order.domain.LhOrdersKayu>
	 * @author zhanggl
	 * @date 2023/12/27
	 */
	List<LhOrdersPool> selectOrdersList(LhOrdersPool orders);


	/**
	 * 根据origin和originId查询数据
	 *
	 * @param origin  源
	 * @param orderId 订单号
	 * @return int 返回值
	 * @author zhanggl
	 * @date 2024年01月04日15:14:37
	 */
	LhOrdersPool selectByOriginAndOrderId(Integer origin, Long orderId);
}

